//
//  HLPasswordField.m
//  Objective-cDemo
//
//  Created by ShareAnimation on 2019/8/23.
//  Copyright © 2019 爱丽丝的梦境. All rights reserved.
//

#import "HLPasswordField.h"

@implementation HLPasswordField

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self addTarget:self action:@selector(doAction) forControlEvents:UIControlEventTouchUpInside];
    }
    return self;
}

- (void)doAction {
    [self becomeFirstResponder];
    [self endEditing:true];
}
@end
